package cate.common.table.res.hero.back.row;


import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class InheritTalenRow extends ERow {
    @NoteField("名称")
    public String name;

    @NoteField("技能ID")
    public int skillId;

    @NoteField("下一级ID")
    public int nextId;

    @NoteField("技能等级")
    public int level;

    @NoteField("获得天赋所需消耗")
    public String costStr;

    @NoteField("是否顶级")
    public boolean top;

    @NoteField("遗忘返还")
    public String backStr;

    @NoteField("遗忘消耗元宝")
    public int forget_m1;

    @NoteField("战力")
    public long power;

    @NoteField("原型ID")
    public int protoId;

    @NoteField("遗忘返还2")
    public String backStr2;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID", -1);
        this.name = xrw.getString("名称");
        this.skillId = xrw.getInteger("技能ID", -1);
        this.nextId = xrw.getInteger("下一级ID", -1);
        this.level = xrw.getInteger("技能等级", -1);
        this.costStr = xrw.getString("获得天赋所需消耗");
        this.top = xrw.getBoolean("是否顶级", false);
        this.backStr = xrw.getString("遗忘返还");
        this.backStr2 = xrw.getString("遗忘返还2");
        this.forget_m1 = xrw.getInteger("遗忘消耗元宝", 0);
        this.power = xrw.getLong("战力", 0l);
        this.protoId = xrw.getInteger("原型ID", -1);
    }

//    @Override
//    public void decode() {
//        HeroSkillRow skr = Game.config.hero.skill.get(this.skillId);
//        if (skr != null) {
//            this.protoId = skr.protoId;
//        } else {
//            this.protoId = this.skillId;
//        }
//    }
}
